import request from '@/utils/request'

export function findDept(data) {
    return request({
        url: 'http://localhost:8081/rbac/dept/find',
        method: 'post',
        data
    })
}

export function excludeDept(data) {
    return request({
        url: 'http://localhost:8081/rbac/dept/exclude',
        method: 'post',
        data
    })
}

export function saveDept(data) {
    return request({
        url: 'http://localhost:8081/rbac/dept/save',
        method: 'post',
        data
    })
}

export function updateDept(data) {
    return request({
        url: 'http://localhost:8081/rbac/dept/update',
        method: 'post',
        data
    })
}

export function deleteDept(data) {
    return request({
        url: 'http://localhost:8081/rbac/dept/delete',
        method: 'post',
        data
    })
}

export function commFindByName(deptId) {
    return request({
        url: `http://localhost:8081/rbac/dept/commFindByName/${deptId}`,
        method: 'get'
    })
}
